import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        // errorimg:'this.src="' + require('./assets/img/errorimg.png') + '"',  //默认图片
        AAA: false,    
    },
    mutations: {
        Set_AAA:(state,type) => {                 
            state.AAA = type;
        },
    },
    actions: {
        setAAA: ({commit}, view) => {
            commit('Set_AAA', view)
        },
    },
    getters:{
        getAAA: state => state.AAA,
    }
})
